﻿namespace RpcStore.RemoteModel.ServerEventSwitch.Model
{
    public class EventSwitchData
    {
        /// <summary>
        /// 服务事件ID
        /// </summary>
        public long Id
        {
            get;
            set;
        }
        /// <summary>
        /// 服务节点ID
        /// </summary>
        public long ServerId
        {
            get;
            set;
        }
        /// <summary>
        /// 服务节点名
        /// </summary>
        public string ServerName
        {
            get;
            set;
        }
        public int SysEventId
        {
            get;
            set;
        }
        /// <summary>
        /// 系统事件名
        /// </summary>
        public string SysEventName { get; set; }
        /// <summary>
        /// 事件Key
        /// </summary>
        public string EventKey { get; set; }
        /// <summary>
        /// 模块名
        /// </summary>
        public string Module { get; set; }
        /// <summary>
        /// 事件级别
        /// </summary>
        public SysEventLevel EventLevel
        {
            get;
            set;
        }
        /// <summary>
        /// 事件类型
        /// </summary>
        public SysEventType EventType
        {
            get;
            set;
        }
        /// <summary>
        /// 事件提示模板
        /// </summary>
        public string MsgTemplate
        {
            get;
            set;
        }
        /// <summary>
        /// 事件配置项
        /// </summary>
        public Dictionary<string, object> EventConfig
        {
            get;
            set;
        }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable
        {
            get;
            set;
        }
    }
}
